package com.zb.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zb.entity.ZjSystemLogContent;
import com.zb.mapper.ZjSystemLogContentMapper;
import com.zb.service.ZjSystemLogContentService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 系统日志内容表 服务实现类
 * </p>
 *
 * @author WEN
 * @since 2023-07-29
 */
@Service
public class ZjSystemLogContentServiceImpl extends ServiceImpl<ZjSystemLogContentMapper, ZjSystemLogContent> implements ZjSystemLogContentService {

    @Override
    public void save(Long id, Long custAccId, String param) {
        this.save(id, custAccId, param, null);
    }

    @Override
    public void save(Long id, Long custAccId, String param, String content) {
        ZjSystemLogContent logContent = new ZjSystemLogContent();
        logContent.setId(id);
        logContent.setCustAccId(custAccId);
        logContent.setParam(param);
        logContent.setContent(null == content? "" : content);
        this.save(logContent);
    }
}
